package org.zh.svs.pro.remote;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.zh.svs.pro.sv.CurriculumService;

import java.sql.SQLException;

@RestController
public class CurriculumController {

    private final CurriculumService cs;

    public CurriculumController(CurriculumService cs){
        this.cs = cs;
    }

    @RequestMapping(value = "/test",method = RequestMethod.GET)
    public String test() throws SQLException {
        cs.updateTID();
        return "success";
    }

}
